<div class="content-box">
	<div class="box-body">
	<div class="box-header clear">
		<ul class="tabs clear">
			<li><?php echo $html->link("Thêm menu", array('action'=>'edit')); ?></li>
			
		</ul>
                            
		<h2>Quản lý menu</h2>
	</div>
                        
	<div class="box-wrap clear">
		<!-- TABLE -->
		<div id="table">
		<table class="style1">
			<thead>
				<tr>
					<th><?php echo __('ID', true);?></th>
					<th><?php echo __('Menu', true);?></th>
					<th><?php echo __('Link', true);?></th>
					<th><?php echo __('Thao tác', true);?></th>
				</tr>
			</thead>
			<tbody>
			<?php
				$i = 0;
				foreach ($menu_list as $key=>$node):?>
				<tr>
					<td style="text-align: center;"><?php echo $key; ?>&nbsp;</td>
					<td style="text-align: left"><?php echo $node; ?>&nbsp;</td>
					<td style="text-align: left">
					<?php
						if(in_array($key, array_keys($links))){
							echo $links[$key]; 
						}
					?>&nbsp;
					</td>
					<td class="actions">
						<?php echo $html->image("admin/up_16.png", array(
							"alt" => "Lên",
							'url' => array('action' => 'move', $key, 'up')
							)); ?>
						<?php echo $html->image("admin/down_16.png", array(
							"alt" => "Xuống",
							'url' => array('action' => 'move', $key, 'down')
							)); ?>
						<?php echo $html->image("admin/ico_edit_16.png", array(
							"alt" => "Sửa",
							'url' => array('action' => 'edit', $key)
							)); ?>
						<?php echo $html->image("admin/ico_delete_16.png", array(
							"alt" => "Xóa",
							'url' => array('action' => 'delete', $key),
							'onclick'=>'return confirm(\'Bạn có chắc chắn muốn xóa ?\')'
						)); ?>
					</td>
				</tr>
			</tbody>
			<?php endforeach; ?>
		</table>
		</div><!-- /#table -->
                            
	</div><!-- end of box-wrap -->
	</div> <!-- end of box-body -->
</div> <!-- end of content-box -->